package cn.devzyh.oms.wsms.api.entity;

import cn.devzyh.oms.common.mybatis.domain.BaseModel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 库存日志
 *
 * @author devzyh
 * @date 2023-10-29
 */
@TableName("stock_log")
@Data
@EqualsAndHashCode(callSuper = true)
public class StockLog extends BaseModel<StockLog> {

	/**
	 * ID
	 */
	@TableId(type = IdType.ASSIGN_ID)
	private Long id;

	/**
	 * 库存ID
	 */
	private Long stockId;

	/**
	 * 业务主键
	 */
	private String dataKey;

	/**
	 * 操作类型
	 */
	private String operation;

	/**
	 * 操作方向 I/O
	 */
	private String direction;

	/**
	 * 操作数量
	 */
	private Integer quantity;

	/**
	 * 流转状态
	 */
	private Integer status;

	/**
	 * 操作前可用数量
	 */
	private Integer beforeQuantity;

}